#ifndef MTEXTBOX_H
#define MTEXTBOX_H

#include <QGraphicsWidget>

class MTextBox : public QGraphicsWidget
{
    Q_OBJECT
public:
    explicit MTextBox(QString text, int w, int h, QGraphicsItem *parent = 0);
    void setMouseOver(bool);
    int width() { return w; }
    int height() { return h; }

protected:
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
signals:
    
public slots:

private:
    QString text;
    bool mouse_over;
    int w, h;
    friend class MPicker;
};

#endif // MTEXTBOX_H
